/**
 * 
 */
package com.test;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * @author  LvSaiHui {gurnfe@163.com}
 * @version  1.0
 * <br>Copyright (C), 2007-2008, ZJUT
 * <br>This program is protected by copyright laws.
 * <br>Program Name: PrintlnWriter.java
 * <br>Date: 2009-4-6
 * <br>Description: 
 */
public class PrintlnWriter {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		File crwledURLs= new File("D:\\eclipse_workplace\\crawler\\src\\urls_test.txt");
		if (!crwledURLs.exists()) {
			crwledURLs.createNewFile();
		}
		FileWriter fileWriter=new FileWriter(crwledURLs);
		PrintWriter printWriter=new PrintWriter(fileWriter);
		for(int i=0;i<12;i++){
			printWriter.println(i);
		}
		if(printWriter!=null){
			printWriter.close();
		}
	}

}
